$(document).ready(function(){
	if(ids==""){
		location.href="user_list.jsp";
	}else{
		findUser();
	}
});
function findUser(){
	$.ajax({
		url : "/admin/user!findUser.action",
		type : "post",
		data : {
			"id" :ids
		},
		dataType : "json",
		beforeSend : parent.msgLoading,
		complete : parent.successLoading,
		success : function(data){
			Interceptor(data);
			if(data!=null){
				var dataUser=data[0];
				
				
				$("#username").html(dataUser.username);
				$("#truename").html(dataUser.name);
				
				if(null!=dataUser.organization){
					var dataObj=dataUser.organization;
					$("#name").html(dataObj.name);
					$("#organType").html(dataObj.organType);
					$("#organLevel").html(dataObj.organLevel);
					$("#organCode").html(dataObj.organCode);
					$("#address").html(dataObj.address);
					$("#postCode").html(dataObj.postCode);
					$("#contactUser").html(dataObj.contactUser);
					$("#contactPhone").html(dataObj.contactPhone);
					$("#contactMobile").html(dataObj.contactMobile);
					$("#contactEmail").html(dataObj.contactEmail);
					$("#province").html(dataObj.province.code);
					$("#responsiblePerson").html(dataObj.responsiblePerson);
				}
			}
		},
		error : function() {
			alert("通信失败!");
		}
	});
}